package com.fnzx.dao;

import com.fnzx.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-10-23 22:20:01
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    void prohibit(@Param("id") Long id, @Param("status") Integer status);

    Integer queryStatusById(Long id);

    /**
     * 登录
     * @param username 电话号码或者密码
     * @param password
     * @return
     */
    UserEntity login(@Param("username") String username, @Param("password") String password);
}
